/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fii.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Zeus
 */
@Entity
@Table(name = "pg_alumno", catalog = "prog_acad", schema = "")
@NamedQueries({
    @NamedQuery(name = "PgAlumno.findAll", query = "SELECT p FROM PgAlumno p"),
    @NamedQuery(name = "PgAlumno.findByPgcodAlumno", query = "SELECT p FROM PgAlumno p WHERE p.pgcodAlumno = :pgcodAlumno"),
    @NamedQuery(name = "PgAlumno.findByPgAPaterno", query = "SELECT p FROM PgAlumno p WHERE p.pgAPaterno = :pgAPaterno"),
    @NamedQuery(name = "PgAlumno.findByPgAMaterno", query = "SELECT p FROM PgAlumno p WHERE p.pgAMaterno = :pgAMaterno"),
    @NamedQuery(name = "PgAlumno.findByPgNombre", query = "SELECT p FROM PgAlumno p WHERE p.pgNombre = :pgNombre"),
    @NamedQuery(name = "PgAlumno.findByPgcodPlan", query = "SELECT p FROM PgAlumno p WHERE p.pgcodPlan = :pgcodPlan")})
public class PgAlumno implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "pg_codAlumno", nullable = false, length = 10)
    private String pgcodAlumno;
    @Basic(optional = false)
    @Column(name = "pg_A_Paterno", nullable = false, length = 20)
    private String pgAPaterno;
    @Basic(optional = false)
    @Column(name = "pg_A_Materno", nullable = false, length = 20)
    private String pgAMaterno;
    @Basic(optional = false)
    @Column(name = "pg_Nombre", nullable = false, length = 40)
    private String pgNombre;
    @Basic(optional = false)
    @Column(name = "pg_codPlan", nullable = false, length = 5)
    private String pgcodPlan;

    public PgAlumno() {
    }

    public PgAlumno(String pgcodAlumno) {
        this.pgcodAlumno = pgcodAlumno;
    }

    public PgAlumno(String pgcodAlumno, String pgAPaterno, String pgAMaterno, String pgNombre, String pgcodPlan) {
        this.pgcodAlumno = pgcodAlumno;
        this.pgAPaterno = pgAPaterno;
        this.pgAMaterno = pgAMaterno;
        this.pgNombre = pgNombre;
        this.pgcodPlan = pgcodPlan;
    }

    public String getPgcodAlumno() {
        return pgcodAlumno;
    }

    public void setPgcodAlumno(String pgcodAlumno) {
        this.pgcodAlumno = pgcodAlumno;
    }

    public String getPgAPaterno() {
        return pgAPaterno;
    }

    public void setPgAPaterno(String pgAPaterno) {
        this.pgAPaterno = pgAPaterno;
    }

    public String getPgAMaterno() {
        return pgAMaterno;
    }

    public void setPgAMaterno(String pgAMaterno) {
        this.pgAMaterno = pgAMaterno;
    }

    public String getPgNombre() {
        return pgNombre;
    }

    public void setPgNombre(String pgNombre) {
        this.pgNombre = pgNombre;
    }

    public String getPgcodPlan() {
        return pgcodPlan;
    }

    public void setPgcodPlan(String pgcodPlan) {
        this.pgcodPlan = pgcodPlan;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pgcodAlumno != null ? pgcodAlumno.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PgAlumno)) {
            return false;
        }
        PgAlumno other = (PgAlumno) object;
        if ((this.pgcodAlumno == null && other.pgcodAlumno != null) || (this.pgcodAlumno != null && !this.pgcodAlumno.equals(other.pgcodAlumno))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.fii.entity.PgAlumno[ pgcodAlumno=" + pgcodAlumno + " ]";
    }
    
}
